package com.linux.huhx.concurrent;

import org.junit.Test;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: huhx
 * @Date: 2017-11-30 下午 3:57
 */
public class ConcurrentMapTest {

    @Test
    public void concurrentMap_1() {
        ConcurrentHashMap<String, String> concurrentHashMap = new ConcurrentHashMap<>();
        concurrentHashMap.put("username", "linux");
        System.out.println(concurrentHashMap.get("username"));
    }
}
